import request from '@/utils/request'
import { apiUrl } from '@/config/env'

export function getSupplier(data) {
  return request({
    url: `${apiUrl}/supplier/getSupplier`,
    method: 'get',
    params: data
  })
}

export function saveSupplier(data) {
  return request({
    url: `${apiUrl}/supplier/saveSupplier`,
    method: 'post',
    params: data
  })
}

export function delSupplier(data) {
  return request({
    url: `${apiUrl}/supplier/delSupplier`,
    method: 'post',
    params: data
  })
}

